package ink.feny.contrller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
public class IndexContrlloer {
	@Value("${feny.env}")
	private String env;

	@GetMapping("profile")
	public String getProperties() {
		return env;
	}

	@GetMapping("/")
	public String index() {
		return "这是首页";
	}
}
